package biz.datalk.industrialland.admin;

import com.alibaba.druid.filter.config.ConfigTools;

/**
 * Druid加密工具
 *
 * @author tarofang@163.com
 * @date 2019年05月28日
 */
public class DruidEncrypted {

    public static void main(String[] args) {
    	try {

    	    String pwd = "fangtailang";
			pwd = "SharedGarage123!@#";
			pwd = "IndustrialLand123!@#";
            ConfigTools.main(new String[]{pwd});

            // String publicKey = "MFwwDQYJKoZIhvcNAQEBBQADSwAwSAJBALR1gYTvXhlOrrryRlKUzLw9iLHqBQyyFT5GE2y5ZkI88GZodSNm3pUjKzjqniDRp85S3zwGIvpokkJhg1q/EEMCAwEAAQ==";
            // String cipherText = "cWi91cCIh8g+hbRocCkXOZRTaOYLFIW6PvxW09HtH2t/2tbePBlAO1jZiiiVedcbj6Tmp84w4W19ZINhLz5fkA==";
			// System.out.println(ConfigTools.decrypt(publicKey, cipherText));

		} catch (Exception ex) {
    	    ex.printStackTrace();
    	}
    }

}
